﻿using fastdb.Db;

namespace fastdb.ComputeTreeNode
{
    public class SqlNode
    {

        public SqlNode ParentNode { get; set; }

        public dynamic V { get; set; }

        public List<SqlNode> ChildNodes { get; set; } = new List<SqlNode>();//一般是两个

        public virtual string Compute(DataBase db)
        {
            var firstChild = ChildNodes.FirstOrDefault();
            return firstChild?.Compute(db);
        }
    }
}
